<!-- pagination -->
<ul class="pagination pull-right" th:fragment="pagination">
    <li class="page-item " th:if="${iPage.current-1>0}"><a href="javascript:void(0);" class="page-link" th:onclick="goTo(1)">首页</a></li>
    <li class="page-item disabled" th:if="${iPage.current-1<=0}"><a href="javascript:void(0);"  >首页</a></li>

    <li class="page-item " th:if="${iPage.current-1>0}"><a href="javascript:void(0);" class="page-link" th:onclick="goTo([[${iPage.current-1}]])">上一页</a></li>
    <li class="page-item disabled" th:if="${iPage.current-1<=0}"><a href="javascript:void(0);" >上一页</a></li>

    <li class="page-item" th:if="${iPage.current-3>0}"><a href="javascript:void(0);" class="page-link" th:text="${iPage.current-3}" th:onclick="goTo([[${iPage.current-3}]])"></a></li>
    <li class="page-item" th:if="${iPage.current-2>0}"><a href="javascript:void(0);" class="page-link" th:text="${iPage.current-2}" th:onclick="goTo([[${iPage.current-2}]])"></a></li>
    <li class="page-item" th:if="${iPage.current-1>0}"><a href="javascript:void(0);" class="page-link" th:text="${iPage.current-1}" th:onclick="goTo([[${iPage.current-1}]])"></a></li>

    <li class="page-item active"><a href="javascript:void(0);" class="page-link" th:text="${iPage.current}"></a></li>

    <li class="page-item" th:if="${iPage.current+1<=iPage.pages}"><a href="javascript:void(0);" class="page-link" th:text="${iPage.current+1}" th:onclick="goTo([[${iPage.current+1}]])"></a></li>
    <li class="page-item" th:if="${iPage.current+2<=iPage.pages}"><a href="javascript:void(0);" class="page-link" th:text="${iPage.current+2}" th:onclick="goTo([[${iPage.current+2}]])"></a></li>
    <li class="page-item" th:if="${iPage.current+3<=iPage.pages}"><a href="javascript:void(0);" class="page-link" th:text="${iPage.current+3}" th:onclick="goTo([[${iPage.current+3}]])"></a></li>

    <li class="page-item" th:if="${iPage.current+1<=iPage.pages}"><a href="javascript:void(0);" class="page-link" th:onclick="goTo([[${iPage.current+1}]])">下一页</a></li>
    <li class="page-item disabled" th:if="${iPage.current+1>iPage.pages}"><a href="javascript:void(0);" >下一页</a></li>

    <li class="page-item" th:if="${iPage.current+1<=iPage.pages}"><a href="javascript:void(0);" class="page-link" th:onclick="goTo([[${iPage.pages}]])">尾页</a></li>
    <li class="page-item disabled" th:if="${iPage.current+1>iPage.pages}"><a href="javascript:void(0);" >尾页</a></li>

</ul>